import javax.crypto.spec.PSource;
import java.util.Scanner;

public class Demo4 {
    public static void main(String[] args) {
        //从键盘输入
        //使用Scanner 读取字符串/整数/浮点数
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入你的姓名: ");
        String name=scanner.nextLine();
        System.out.println("请输入你的年龄: ");
        int age=scanner.nextInt();
        System.out.println("请输入你的工资: ");
        double salary=scanner.nextDouble();
        System.out.println("你的信息如下: ");
        System.out.println("姓名: "+name+"\n"+"年龄: "+age+"\n"+"工资: "+salary);
    }
}
